$border-color: #DCDFE6;
$primary-color: #409eff;
$font-color-1: #303133;
$font-color-2: #606266;
$font-color-3: #909399;
$bg-color: #fafafa;
$primary-hover-bg-color: #ecf5ff;

.container {
  &_header {
    background-color: #409eff;
    text-align: center;
    color: #fff;
    line-height: 60px;
    font-size: 22px;
    margin-bottom: 10px;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.25);
  }

  &_aside-left {
    border-right: 2px solid #e6e6e6;
    height: calc(100vh - 70px);
    padding: 0 15px;

    ul {
      padding: 0px;
      list-style: none;
      display: flex;
      margin-bottom: 0;
      flex-wrap: wrap;

      li {
        border-radius: 0;
        border: 0;
        box-shadow: 1px 0 0 0 $border-color, 0 1px 0 0 $border-color,
          1px 1px 0 0 $border-color, 1px 0 0 0 $border-color inset,
          0 1px 0 0 $border-color inset;
        padding: 8px 12px;
        transition: all 0.3s;
        width: 120px;
        margin: 5px 5px;
        height: 36px;
        line-height: 20px;
        cursor: move;
        border: 1px solid transparent;
        border-radius: 5px;
        transition: all 0.3s;

        &:hover {
          color: $primary-color;
          border: 1px solid $primary-color;
          position: relative;
          z-index: 1;
          box-shadow: 0 2px 6px $primary-color;
        }
      }
    }
  }

  &_main {
    padding: 10px 20px;

    &_header {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 10px 20px;
      border-bottom: 1px solid $border-color;
      box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);
    }

    &_body {
      position: relative;
      width: calc(100% - 16px);
      height: calc(100vh - 136px);
      margin: 8px;
      background-color: $bg-color;
      overflow: auto;
      box-shadow: 0 4px 12px #ebedf0;

      .no-list {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
        color: $font-color-3;
      }

      &_form {
        width: 100%;
        height: 100%;

        .draggable-box {
          width: 100%;
          height: 100%;
          overflow: auto;

          .list-main {
            min-height: 100%;
            position: relative;
            padding: 10px 0px;
          }
        }
      }

      .itemPage {
        position: relative;
        box-sizing: border-box;
        padding: 20px 8px;
        overflow: hidden;
        transition: all .3s;
        min-height: 36px;

        &:hover {
          background: $primary-hover-bg-color;
        }

        &::before {
          content: '';
          height: 5px;
          width: 100%;
          background: $primary-color;
          position: absolute;
          top: 0;
          right: -100%;
          transition: all .3s;
        }

        &.active {
          &::before {
            right: 0;
          }

          background : $primary-hover-bg-color;
          outline-offset: 0;
        }

        &_key {
          position: absolute;
          bottom: 3px;
          right: 10px;
          font-size: 14px;
          z-index: 3;
          color: $primary-color;
        }

        &_operation {
          position: absolute;
          right: 0px;
          top: 5px;
          background-color: $primary-color;
          color: #fff;
          width: 60px;
          height: 25px;
          display: flex;
          justify-content: space-around;
          align-items: center;
          padding: 0 5px 5px;
          border-radius: 0px 0px 0px 10px;
          z-index: 3;

          &_active {
            opacity: 1;
          }
          &_none {
            opacity: 0;
          }
          &_icon {
            padding: 0 5px;
            cursor: pointer;
          }
        }





      }
      .form-item {
        &::before {
          content: "";
          position: absolute;
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          z-index: 2;
        }
      }

    }
  }

  &_aside-right {
    border-left: 2px solid #e6e6e6;
    height: calc(100vh - 70px);

    .formConfig {
      padding: 0 15px;
    }
  }
}

.moving {
  // 拖放移动中
  min-height: 35px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 !important;
  margin: 3px 0;
  position: relative;

  &::before {
    content: '';
    height: 5px;
    width: 100%;
    background: $primary-color;
    position: absolute;
    top: 0;
    right: 0;
  }
}

// 列表动画
.list-fade-enter-active {
  transition: all .3s;
}

.list-fade-leave-active {
  transition: all .3s;
}

.list-fade-enter,
.list-fade-leave-to {
  opacity: 0;
  transform: translateX(-250px);
  position: absolute;
}